import request from '@/utils/request'

export function findList(params) {
    return request({
        url: '/bmw/scene/list',
        method: 'get',
        params
    })
}

export function findDetail(data) {
    return request({
        url: '/bmw/scene/'+data,
        method: 'get'
    })
}

export function saveOne(data) {
    return request({
        url: '/bmw/scene/save',
        method: 'post',
        data: data
    })
}

export function updateOne(data) {
    return request({
        url: '/bmw/scene/update',
        method: 'put',
        data: data
    })
}

export function deleteOne(id) {
    return request({
        url: '/bmw/scene/'+id,
        method: 'delete'
    })
}